<?php
/*
 * @Author: CHINAKAIYUAN<sunkaiyuan@namenode.cn>
 * @Date: 2022-02-03 00:33:05
 * @LastEditTime: 2023-10-05 10:52:15
 * @LastEditors: 孙开源 && sunkaiyuan@namenode.cn
 * @Description: BOM成品工艺
 */

namespace App\Models;

use App\Traits\MaterialTrait;

class ProBomDetail extends BaseModel
    {
    use MaterialTrait;

    public $timestamps = true;
    public $table = "basedata_pro_dyecraft_bom_details";
    protected $guarded = [];


    public function main()
        {
        return $this->belongsTo(ProBom::class);
        }
    public function point_stick()
        {
        return $this->belongsTo(PointStick::class);
        }
    public function glue()
        {
        return $this->belongsTo(Material::class);
        }
    }
